package com.google.code.mamule.mail.mock;

import com.google.code.mamule.mail.Address;
import com.google.code.mamule.mail.Mailable;
import com.google.code.mamule.mail.Naming;
import com.google.code.mamule.user.User;

public class Mock {

  private Mock() {/* static */}

  public static User user() {
    return new User("reference-user", "reference-password", "reference@user.com",
                    "reference-creditcard", Mock.sender());
  }

  public static Mailable sender() {
    final Address a =
        new Address("sender-street 1", "sender-city", "sender-postcode", "sender-country");
    final Naming e = new Naming("Mr.", "the", "sender");
    return new Mailable(e, null, a);
  }

  public static Mailable receiver() {
    final Address a =
        new Address("receiver-street 1", "receiver-city", "receiver-postcode", "receiver-country");
    final Naming e = new Naming("Mr.", "the", "receiver");
    return new Mailable(e, null, a);
  }
}
